package service

import (
	"context"
	"fmt"

	pb "com.damai.services/user/api"
)

type UserService struct {
	pb.UnimplementedUserServer
}

func NewUserService() *UserService {
	return &UserService{}
}

func (s *UserService) GetUser(ctx context.Context, req *pb.GetUserRequest) (*pb.GetUserReply, error) {
	return &pb.GetUserReply{
		Name: fmt.Sprintf("hello %v, %s", req.Id, "user info request"),
	}, nil
}
